﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SIF_2.PresentationLayer;
using InicioDeSesion;

namespace SIF_2
{
    public partial class MenuP : Form
    {
        public MenuP()
        {
            InitializeComponent();
        }

        private void bcrearf_Click(object sender, EventArgs e)
        {
            fcfactura FrmFactura = new fcfactura();

            FrmFactura.Show();
        }

        private void bconsultarf_Click(object sender, EventArgs e)
        {
            fcsfactura FrmConsultaFactura = new fcsfactura();

            FrmConsultaFactura.Show();
        }

        private void bcrearc_Click(object sender, EventArgs e)
        {
            fccliente FrmCrearCliente = new fccliente();

            FrmCrearCliente.Show();
        }

        private void bconsultarcliente_Click(object sender, EventArgs e)
        {
            fcscliente FrmConsultaClientes = new fcscliente();

            FrmConsultaClientes.Show();
        }

        private void breportc_Click(object sender, EventArgs e)
        {
            this.Hide();
            new freportcliente().Show();
        }

        private void MenuP_Load(object sender, EventArgs e)
        {
            if (Program1.ofi)
            {
                bconsultarcliente.Enabled = false;
                bconsultarf.Enabled = false;
                breportc.Enabled = false;
                breportf.Enabled = false;                
            }
        }

        private void breportf_Click(object sender, EventArgs e)
        {
            this.Hide();
            new freportfactura().Show();
        }
    }
}
